package com.zhuang.framework.beans.factory;

/**
 * @Classname BeanFactory
 * @Description 在该接口中定义IOC容器的统一规范即获取bean对象
 * @Date 2021/4/1 15:12
 * @Created by dell
 */

public interface BeanFactory {
    //根据bean对象的名称获取bean对象
    Object getBean(String name) throws Exception;

    //根据bean对象的名称获取bean对象，并进行类型转换
    <T> T getBean(String name, Class<? extends T> clazz) throws Exception;
}
